// JavaScript Document
	function getweather(){
		$("#shouyefont").hide();
    $.getJSON("http://wthrcdn.etouch.cn/weather_mini",
		{city:"南京"},function(json){
			nTem = json.data.wendu;
			Ganmao = json.data.ganmao;
			toAqi = json.data.aqi;
			toType = json.data.forecast[0].type;
			//今天的基本信息
			var nowtem = document.getElementsByTagName("h4")[0];
			var nowaqi = document.getElementsByTagName("h4")[1];
			var nowtype = document.getElementsByTagName("h4")[2];
			nTem = Number(nTem);
			toAqi = Number(toAqi);
			toType = String(toType);
			
			nowtem.innerHTML = nTem;
			nowaqi.innerHTML = toAqi;
			nowtype.innerHTML = toType;
			})
	}
function chBc1(){
	$("#meShou").animate({'backgroundColor':'#DDDDDD'},200);
	}
function chBc2(){
	$("#meTian").animate({'backgroundColor':'#DDDDDD'},200);
	}
function chBc3(){
	$("#meZi").animate({'backgroundColor':'#DDDDDD'},200);
	}
function chBc4(){
	$("#meGuan").animate({'backgroundColor':'#DDDDDD'},200);
	}
function chBc5(){
	$("#meManage").animate({'backgroundColor':'#DDDDDD'},200);
	}
function baBc1(){
	$("#meShou").animate({'backgroundColor':'#FFFFFF'},200);
	}
function baBc2(){
	$("#meTian").animate({'backgroundColor':'#FFFFFF'},200);
	}
function baBc3(){
	$("#meZi").animate({'backgroundColor':'#FFFFFF'},200);
	}
function baBc4(){
	$("#meGuan").animate({'backgroundColor':'#FFFFFF'},200);
	}
function baBc5(){
	$("#meManage").animate({'backgroundColor':'#FFFFFF'},200);
	}
	
function showindex(){
	$("#meShou").animate({'backgroundColor':'#48A9EB'},400);
	$("#manage").hide(500);
	$("#shouye").show(500);
	$("#zixun").hide(500);
	$("#tianqichaxun").hide(500);
	$("#guanyu").hide(500);
	getweather();
	$("#weatehrInfo").show();
	}
function showinfo(){
	$("#meZi").animate({'backgroundColor':'#48A9EB'},400);
	$("#shouye").hide(500);
	$("#manage").hide(500);
	$("#tianqichaxun").hide(500);
	$("#guanyu").hide(500);
	$("#zixun").show(500,function(){
		setTimeout("window.location.href='tianqizixun.html'",1000);
		});
	}
function showweather(){
	$("#meTian").animate({'backgroundColor':'#48A9EB'},400);
	$("#shouye").hide(500);
	$("#manage").hide(500);
	$("#zixun").hide(500);
	$("#guanyu").hide(500);
	$("#tianqichaxun").show(500,function(){
		setTimeout("window.location.href='showweather.html'",1000)
		});
}
function showmanage(){
	$("#meManage").animate({'backgroundColor':'#48A9EB'},400);
	$("#manage").show(500);
	$("#shouye").hide(500);
	$("#zixun").hide(500);
	$("#guanyu").hide(500);
	$("#tianqichaxun").hide(500);
	}
function showabout(){
	$("#meGuan").animate({'backgroundColor':'#48A9EB'},400);
	$("#shouye").hide(500);
	$("#zixun").hide(500);
	$("#tianqichaxun").hide(500);
	$("#guanyu").show(500);
	}